#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class StaffExprience : Business.BusinessBase<StaffExprience, int>
	{
		#region Fields and Properties

		private String title = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Title
		{
			get { return title; }
			set
			{
				if (value != title)
				{
					MarkChanged("Title");
					title = value;
				}
			}
		}

		private String positon = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Positon
		{
			get { return positon; }
			set
			{
				if (value != positon)
				{
					MarkChanged("Positon");
					positon = value;
				}
			}
		}

		private String code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Code
		{
			get { return code; }
			set
			{
				if (value != code)
				{
					MarkChanged("Code");
					code = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public StaffExprience()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override StaffExprience DataSelect(int id)
		{
			return Services.DALService.StaffExprienceService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.StaffExprienceService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.StaffExprienceService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.StaffExprienceService.Delete(this);
		}

		#endregion Base overrides
	}
}
